package com.lilong.jwt.service.user;

import com.lilong.jwt.common.base.BaseService;
import com.lilong.jwt.entity.user.User;
import lombok.Getter;

import java.util.List;


public interface UserService extends BaseService<User> {
    @Getter
    enum UserStatusEnum {
        ENABLE(1, "启用"),
        DISABLE(0, "禁用"),
        DELETE(-1, "删除");
        private int value;
        private String desc;

        UserStatusEnum(int value, String desc) {
            this.value = value;
            this.desc = desc;
        }
    }

    boolean able(Long id,User operator);
    boolean batchRemove(List<Long> id, User operator);
}
